package cn.skyquant.quant4j.api.account;


import cn.skyquant.quant4j.api.dto.ResultDTO;
import cn.skyquant.quant4j.api.enums.BorkerType;

import java.rmi.Remote;

public interface AccountService extends Remote {
    //注册一个新账户或者返回一个账户
    @Deprecated
    ResultDTO<AccountDTO> reg(String accountCode, BorkerType borkerType, String accountName, String borkerName, String currency, String accountType, String parentCode);

    //更新资产信息
    ResultDTO<Void> update(String accountCode, BorkerType borkerType, double balance, double equity, double usedMargin, long borkerTime);

    //余额提醒
    ResultDTO<Void> notice(int accountId);

    //返回一个账户
    ResultDTO<AccountDTO> get(String accountCode, BorkerType borkerType);

    //产生一个新账户
    ResultDTO<AccountDTO> create(String accountCode, BorkerType borkerType, String accountType, String accountName, String borkerName, String currency, String parentCode);

    //更新type
    ResultDTO<Void> updateType(int accountId,String type);
}
